# Contributor:
# Maintainer: Alexander Sack <asac@pantacor.com>
pkgname=tpm2-tss-engine
pkgver=1.1.0
pkgrel=1
pkgdesc="tpm2tss engine for openssl"
url="https://github.com/tpm2-software/tpm2-tss-engine/"
arch="all"
license="BSD-2-Clause"
makedepends="tpm2-tss-dev openssl1.1-compat-dev doxygen linux-headers"
subpackages="
	$pkgname-dev
	$pkgname-doc
	$pkgname-bash-completion
	"
source="https://github.com/tpm2-software/tpm2-tss-engine/releases/download/v$pkgver/tpm2-tss-engine-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--enable-tctienvvar
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5d2e08178be54350e8672245023d601a0d9d520f8c49e977af49d7c59b91d033c14b4a347b71e042fe7c5ff12af9fcc43b69fd1dc83a9f0db12d47d43e1107f4  tpm2-tss-engine-1.1.0.tar.gz"
